{% extends "oa/base.html" %}
{% load i18n static %}
{% block title %} 产品信息 {% endblock %}
{% block content %}
    <section class="wrapper">
        <section class="panel">
            <div class="panel-heading">
                <h3>
                    产品信息
                </h3>
            </div>
            <div class="panel-body table-responsive">
                <table class="table table-striped">
                    <thead>
                        <tr>
                            <th>{% trans '内部编码' %}</th>
                            <th>{% trans '产品名称' %}</th>
                            <th>{% trans '条形码' %}</th>
                            <th>{% trans '长*宽*高(cm)' %}</th>
                            <th>{% trans '毛重(kg)' %}</th>
                            <th>{% trans '净重(kg)' %}</th>
                            <th>{% trans '明细' %}</th>
                        </tr>
                    </thead>
                    <tbody>
                    {% for d in object_list %}
                        <tr>
                            <td>{% if d.code %}{{ d.code }}{% endif %}</td>
                            <td>{{ d.name }}</td>
                            <td>{% if d.barcode %}{{ d.barcode }}{% endif %}</td>
                            <td>{% if d.length %}{{ d.length }}*{{ d.width }}*{{ d.height }}{% endif %}</td>
                            <td>{% if d.weight %}{{ d.weight }}{% endif %}</td>
                            <td>{% if d.weight_net %}{{ d.weight_net }}{% endif %}</td>
                            <td>{{ d.packs }}</td>
                        </tr>
                    {% endfor %}
                    </tbody>
                </table>
            </div>
        </section>
    </section>
{% endblock %}
